{config_load file=anonymous_comments_lang_conf}
{literal}
<script type="text/javascript">
function validate(form_id,email) {
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	var address = document.forms[form_id].elements[email].value;
	if(reg.test(address) == false) {
		alert('Invalid Email Address');
		return false;
	}
}
</script>
{/literal}
<div class="comment">
	<div class="top"><!-- //--></div>
	<div class="head propercase"><strong>{#PLIGG_Anonymous_Comment_Submit_Comment#}</strong></div>
	<div class="content">
		<form action="" method="POST" id="thisform" onsubmit="javascript:return validate('thisform','a_email');">
			<label for="a_username"><strong>{#PLIGG_Anonymous_Comment_Name#}:</strong></label><br />
			<input type="text" name="a_username" id="a_username" size="40" />{$a_username}
			<br /><br />
			{*
			<label for="a_website"><strong>{#PLIGG_Anonymous_Comment_Website#}:</strong></label><br />
			<input type="text" name="a_website" id="a_website" size="40" />{$a_website}
			<br /><br />
			
			<label for="a_email"><strong>{#PLIGG_Anonymous_Comment_Email#}:</strong></label><br />
			<input type="text" name="a_email" id="a_email" size="40" />{$a_email}
			<br /><br />
			*}
			
			<label for="comment"><span class="msg_warning">{#PLIGG_Anonymous_Comment_NoHTML#}</span></label>
			<textarea name="comment_content" id="comment" rows="4" cols="40">{if isset($TheComment)}{$TheComment}{/if}</textarea>
			<br /><br />
			
			{if isset($register_step_1_extra)}
			{$register_step_1_extra}
			{/if}
			<br />
			<input type="submit" name="submit" value="{#PLIGG_Anonymous_Comment_Submit#}" />
			<input type="hidden" name="process" value="newcomment" />
			<input type="hidden" name="randkey" value="{$randkey}" />
			<input type="hidden" name="link_id" value="{$link_id}" />
			<input type="hidden" name="user_id" value="{$anonymous_user_id}" />
			<input type="hidden" name="anon" value="1" />
		</form>
	</div>
	<div class="bottom"><!-- //--></div>
</div>
{config_load file=anonymous_comments_pligg_lang_conf}